package org.filecollector.basics.configs;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ConfigsDao {
    String[] paths;
    Long min;
    Long max;
    String[] flags;

    public static ConfigsDao fromJSON(String json) {
        var gson = ConfigsSingleton.getConfigGsonBuilder().create();
        return gson.fromJson(json, ConfigsDao.class);
    }
}
